#include <iostream>
#include <string>
using namespace std;
int main(){
    int n;
    cin>>n;
    cin.ignore();
    for (int i=0;i<n;i++){
    int num1=0,num2=0,num3=0,num4=0,num5=0;
        string s;
        getline(cin,s);
        if (s.length() > 100)
			{
				break;
			}
        for(char c:s){
            if(c=='a'){
                num1++;
            }else if(c=='e'){
                num2++;
            }else if(c=='i'){
                num3++;
            }else if(c=='o'){
                num4++;
            }else if(c=='u'){
                num5++;
            }
        }
            cout << "a:" << num1  << endl;
			cout << "e:" << num2  << endl;
			cout << "i:" << num3  << endl;
			cout << "o:" << num4  << endl;
			cout << "u:" << num5  << endl;
            if (i + 1 < n)
			{
				cout << endl;
			}
    }
}